wpc � �webpack/lib/cache/PackFileCacheStrategy�PackContentItems� � Compilation/modules|/var/www/html/orbi-individual/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[6].oneOf[3].use[0]!/var/www/html/orbi-individual/components/models/bookingFormModel.js� Compilation/codeGeneration|/var/www/html/orbi-individual/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[6].oneOf[3].use[0]!/var/www/html/orbi-individual/components/models/bookingFormModel.js|93813f0805e9fdf4|webpack�TerserWebpackPlugin|static/chunks/pages/_app-41ddd30d6d6cb27f.js�TerserWebpackPlugin|static/6__D-5OZzT-AjWCIewvg-/_ssgManifest.js�TerserWebpackPlugin|static/6__D-5OZzT-AjWCIewvg-/_buildManifest.js�RealContentHashPlugin|analyse|static/chunks/pages/_app-41ddd30d6d6cb27f.js�RealContentHashPlugin|analyse|static/6__D-5OZzT-AjWCIewvg-/_ssgManifest.js�RealContentHashPlugin|analyse|static/6__D-5OZzT-AjWCIewvg-/_buildManifest.js�RealContentHashPlugin|generate|static/6__D-5OZzT-AjWCIewvg-/_buildManifest.js�webpack/lib/NormalModule�webpack/lib/util/registerExternalSerializer�webpack-sources/RawSourceKG import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { format } from "moment";
import React from "react";
import { useFormik } from "formik";
import axios from "axios";
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import moment from "moment";
import Loader from "@/components/UI/Loader";
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
export default function BookingFormModel(param) {
let { onClose, vehicleData } = param;
const toastMessage = toast.success("book a taxi successfully");
const [loading, setLoading] = React.useState(false);
const base_Url = process.env.NEXT_PUBLIC_DOMAIN;
const formik = useFormik({
initialValues: {
name: "",
vehicle_type_id: "",
number_of_passenger: "",
phone_number: "",
email: "",
travel_date: new Date(),
description: ""
},
onSubmit: async (values)=>{
try {
setLoading(true);
const formattedDate = moment(values.travel_date).format("YYYY-MM-DD HH:mm:ss");
const payload = {
...values,
travel_date: formattedDate
};
const response = await axios.post("".concat(base_Url, "/bookTaxiDetails"), payload);
setLoading(false);
//console.log('Form submitted successfully:', response.data);
onClose();
toastMessage();
} catch (error) {
console.error("Error submitting the form:", error);
}
}
});
return /*#__PURE__*/ _jsx(_Fragment, {
children: loading ? /*#__PURE__*/ _jsx(Loader, {}) : /*#__PURE__*/ _jsx("div", {
className: "modal show",
tabIndex: "-1",
style: {
display: "block"
},
"aria-labelledby": "exampleModalLabel",
"aria-hidden": "true",
children: /*#__PURE__*/ _jsx("div", {
className: "modal-dialog",
children: /*#__PURE__*/ _jsxs("div", {
className: "modal-content",
children: [
/*#__PURE__*/ _jsxs("div", {
className: "modal-header",
children: [
/*#__PURE__*/ _jsx("h5", {
className: "modal-title",
id: "exampleModalLabel",
children: "Book A Taxi"
}),
/*#__PURE__*/ _jsx("button", {
type: "button",
className: "btn-close",
onClick: onClose
})
]
}),
/*#__PURE__*/ _jsx("div", {
className: "modal-body",
children: /*#__PURE__*/ _jsx("div", {
className: "container",
children: /*#__PURE__*/ _jsxs("div", {
className: "row justify-content-center",
children: [
/*#__PURE__*/ _jsxs("div", {
className: "col",
children: [
/*#__PURE__*/ _jsx("div", {
className: "modal-image",
children: /*#__PURE__*/ _jsx("img", {
src: "img/Springfield-Yellow-Cab-1.jpg",
alt: "Vehicle",
style: {
maxWidth: "100%"
}
})
}),
/*#__PURE__*/ _jsx("div", {
className: "about-button-group-1",
children: /*#__PURE__*/ _jsxs("div", {
className: "call-btn",
children: [
/*#__PURE__*/ _jsx("a", {
href: "tel:+468254762443",
className: "btn-icon ripple",
children: /*#__PURE__*/ _jsx("i", {
className: "fas fa-phone-alt"
})
}),
/*#__PURE__*/ _jsxs("div", {
className: "call-text-1",
children: [
/*#__PURE__*/ _jsx("span", {
children: "Call me at:"
}),
/*#__PURE__*/ _jsx("br", {}),
/*#__PURE__*/ _jsx("a", {
href: "tel:+468254762443",
className: "btn-title",
children: "(+91)9825476243"
})
]
})
]
})
})
]
}),
/*#__PURE__*/ _jsx("div", {
className: "col",
children: /*#__PURE__*/ _jsx("form", {
className: "data-form",
onSubmit: formik.handleSubmit,
children: /*#__PURE__*/ _jsxs("div", {
className: "row g-3",
children: [
/*#__PURE__*/ _jsx("div", {
className: "col-md-6",
children: /*#__PURE__*/ _jsx("input", {
type: "text",
className: "form-control form-1",
id: "your-name",
name: "name",
placeholder: "Name",
required: true,
value: formik.values.name,
onChange: formik.handleChange
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-md-6",
children: /*#__PURE__*/ _jsx("input", {
type: "text",
className: "form-control form-1",
id: "your-number",
name: "phone_number",
placeholder: "Phone Number",
required: true,
value: formik.values.phone_number,
onChange: formik.handleChange
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-md-6",
children: /*#__PURE__*/ _jsx("input", {
type: "email",
className: "form-control form-1",
id: "your-email",
name: "email",
placeholder: "Email",
value: formik.values.email,
onChange: formik.handleChange
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-md-6",
children: /*#__PURE__*/ _jsxs("select", {
className: "form-select form-control form-1",
"aria-label": "Default select example",
name: "vehicle_type_id",
required: true,
value: formik.values.vehicle_type_id,
onChange: formik.handleChange,
children: [
/*#__PURE__*/ _jsx("option", {
value: "",
children: "Select Vehicle"
}),
vehicleData.map((vehicle)=>/*#__PURE__*/ _jsxs("option", {
value: vehicle.vehicle_type_id,
children: [
vehicle.get_make.name,
" ",
vehicle.get_model.name,
" (",
vehicle.model_year,
")"
]
}, vehicle.id))
]
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-md-12",
children: /*#__PURE__*/ _jsx(DatePicker, {
selected: formik.values.travel_date,
onChange: (date)=>formik.setFieldValue("travel_date", date || new Date()),
showTimeSelect: true,
dateFormat: "Pp",
className: "form-control form-1",
placeholderText: "Date & Time",
required: true
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-md-12",
children: /*#__PURE__*/ _jsx("input", {
type: "text",
className: "form-control form-1",
id: "your-subject",
name: "number_of_passenger",
placeholder: "No of Passengers",
required: true,
value: formik.values.number_of_passenger,
onChange: formik.handleChange
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-12",
children: /*#__PURE__*/ _jsx("textarea", {
className: "form-control form-1",
id: "your-message",
name: "description",
rows: "4",
placeholder: "Description...",
required: true,
value: formik.values.description,
onChange: formik.handleChange
})
}),
/*#__PURE__*/ _jsx("div", {
className: "col-12",
children: /*#__PURE__*/ _jsx("div", {
className: "row",
children: /*#__PURE__*/ _jsx("div", {
className: "submit-grp",
children: /*#__PURE__*/ _jsx("button", {
type: "submit",
className: "btn fw-bold w-100 style-skew",
children: /*#__PURE__*/ _jsx("span", {
children: "BOOK TAXI NOW"
})
})
})
})
})
]
})
})
})
]
})
})
})
]
})
})
})
});
}
���exportsType�sideEffectFree�namespace
�javascript/auto�/var/www/html/orbi-individual/components/models�alias�fullySpecified�fallback�server-only$�client-only$�next/dist/compiled/client-only$�next/dist/compiled/server-only�next/dist/compiled/server-only/index�next/dist/compiled/client-only/index��
`�assert�buffer�constants�crypto�domain�http�https�os�path�punycode�process�querystring�stream�string_decoder�sys�timers�tty�util�vm�zlib�events�setImmediate�/var/www/html/orbi-individual/node_modules/next/dist/compiled/assert/assert.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/buffer/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/constants-browserify/constants.json�/var/www/html/orbi-individual/node_modules/next/dist/compiled/crypto-browserify/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/domain-browser/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/stream-http/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/https-browserify/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/os-browserify/browser.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/path-browserify/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/punycode/punycode.js�/var/www/html/orbi-individual/node_modules/next/dist/build/polyfills/process.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/querystring-es3/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/stream-browserify/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/string_decoder/string_decoder.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/util/util.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/timers-browserify/main.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/tty-browserify/index.js��/var/www/html/orbi-individual/node_modules/next/dist/compiled/vm-browserify/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/browserify-zlib/index.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/events/events.js�/var/www/html/orbi-individual/node_modules/next/dist/compiled/setimmediate/setImmediate.js
�`�cacheable�parsed�fileDependencies�contextDependencies�missingDependencies�buildDependencies�valueDependencies�hash�assets�assetsInfo�strict�exportsArgument�topLevelDeclarations�snapshot�webpack/lib/util/LazySet�/var/www/html/orbi-individual/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js�webpack/DefinePlugin_hash�webpack/DefinePlugin process.env.NEXT_PUBLIC_DOMAIN�5ecdab88�"https://orbidirectory.com/api"�2c4a4a7b75095341�__webpack_exports__��*default*�BookingFormModel�webpack/lib/FileSystemInfo�Snapshot %��DyB�/var/www/html/orbi-individual/components/models/bookingFormModel.js�safeTime�timestamp�! `ϊ%?yB Pϊ%?yB�ccf324051949a8c2`�webpack/lib/dependencies/HarmonyCompatibilityDependency
d� � ��webpack/lib/dependencies/ConstDependency� `V
`V�aWw
` �`x@�
`�A� �
`#�A� �
`�A� �
`*�A� 1
`4�A2 N
`�AO {
`,�A| �
`7�A� �
c /�webpack/lib/dependencies/HarmonyExportHeaderDependencyA� JG A� JG
a @
�A� �
c3`B�webpack/lib/dependencies/HarmonyImportSideEffectDependency�react/jsx-runtime�
`V�moment�
` �react�
`�formik�
`#�axios�
`�react-datepicker�
`*�react-datepicker/dist/react-datepicker.css�
`4��
` �@/components/UI/Loader�
`,
�react-toastify�
`7`�react-toastify/dist/ReactToastify.css�
c /�webpack/lib/dependencies/HarmonyExportSpecifierDependency`Çdefault
a @
�webpack/lib/dependencies/HarmonyImportSpecifierDependency
�toast�success�
AY f
AY ^
�
���
c&
��useState�React
A� �
A� �
����
c"0
�useFormik�
A
����
c
��
A� �
����
c&,
�post�
Ai s
Ai n
����
c#'#1
�jsx�_jsx
A� �
����
c--
�Fragment�_Fragment
A� �
4����
c--'
��
A* .
����
c.*..
��Loader
A/ 5
4� ���
c./.5
��
AK O
����
c.K.O
��
AZ ^
����
c6$6(
�jsxs�_jsxs
A� �
����
c8(8-
��
A@ E
����
c;&;+
��
A� �
����
c>.>2
��
A�
�
����
cC.C2
��
A+ /
����
cJ&J*
��
A� �
����
cL4L8
��
A
%
����
cN8N=
��
A�
�
����
cQ6Q;
��
A� �
����
cT>TB
��
AM Q
����
cVLVP
��
Au y
����
c^>^B
��
A& +
�}���}����
c`L`Q
��
A
�y���y����
ccJcN
��
A/ 3
�u���u����
cfXf\
��
Aj o
�q���q����
cjJjO
��
Aq u
�m���m����
cmRmV
��
Az ~
�i���i����
cpRpV
��
A� �
�e���e����
cqRqV
��
A
~���a���a����
c}6}:
��
A� �
z���]���]����
cDH
��
A� �
v���Y���Y����
@� `H@� `M
��
Ah l
r���U���U����
@� `F@� `J
��
A !
n���Q���Q����
@� `T@� `X
��
A�! �!
j���M���M����
@� `F@� `J
��
AP"